feat(mac-crafter): retry code-signing attempts
authorJyrki Gadinger <nilsding@nilsding.org>
Thu, 15 May 2025 14:11:38 +0000 (16:11 +0200)
committerJyrki Gadinger <nilsding@nilsding.org>
Fri, 30 May 2025 07:54:41 +0000 (09:54 +0200)
commit8c68c97c03c15a113c5a47905297603525bcb2ff
treee601e12588f69238b15b6809eb0783e47aeff2b9
parent98129e58df7a37c511c1de0d5f8871bc7df6e0e1
feat(mac-crafter): retry code-signing attempts

This step sometimes fails with an error such as: "A timestamp was
expected but was not found.".  Any code-signing errors will result in
the notarisation step to fail.

Apparently this might be due to intermittent network issues.  Let's just
retry codesigning a couple of times in the case it fails ...

See also: https://developer.apple.com/documentation/security/resolving-common-notarization-issues#Include-a-secure-timestamp

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
admin/osx/mac-crafter/Sources/Utils/Codesign.swift